import request from '@/utils/request';
import { stringify } from 'qs';

export async function userCertList(params) {
  return request(`/api/admin/appuser/cert?${stringify(params)}`);
}

export async function userCertUpdateStatus(params) {
  return request('/api/admin/appuser/cert/update/status', {
    method: 'POST',
    body: params,
  });
}

export async function userWithDrawList(params) {
  return request(`/api/admin/appuser/withDraw/list?${stringify(params)}`);
}

export async function userWithDrawStatus(params) {
  return request('/api/admin/appuser/withDraw/status', {
    method: 'POST',
    body: params,
  });
}

export async function userWithDrawUpdate(params) {
  return request('/api/admin/appuser/cert/update/status', {
    method: 'POST',
    body: params,
  });
}
